package com.koala.auth.feign;


import com.koala.auth.feign.fallback.UserServiceFallbackImpl;

import com.koala.common.core.utils.RT;
import com.koala.upms.api.vo.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhangchengji
 */
@FeignClient(value = "koala-upms", fallback = UserServiceFallbackImpl.class)
public interface UserService {
    /**
     *
     * @param username
     * @return
     */
	@GetMapping(value = "/user/findUserByUsername/{username}")
    RT<UserInfo> findUserByUsername(@PathVariable("username") @Param("username") String username);
	@GetMapping(value = "/user/info")
     RT<UserInfo> info();
}
